gtk4.git
5 years agoMerge branch 'fix_expander_demo' into 'master'
Matthias Clasen [Thu, 13 Aug 2020 23:08:09 +0000 (23:08 +0000)]
Merge branch 'fix_expander_demo' into 'master'

fix resource not found in expander demo

See merge request GNOME/gtk!2436

5 years agoMerge branch 'list-styles' into 'master'
Matthias Clasen [Thu, 13 Aug 2020 21:15:22 +0000 (21:15 +0000)]
Merge branch 'list-styles' into 'master'

Implement and document list styles

See merge request GNOME/gtk!2421

5 years agoMerge branch 'async-highlight' into 'master'
Matthias Clasen [Thu, 13 Aug 2020 21:15:09 +0000 (21:15 +0000)]
Merge branch 'async-highlight' into 'master'

gtk-demo: Async highlight

See merge request GNOME/gtk!2435

5 years agofix resource not found in expander demo
Ahmed Eldemery [Thu, 13 Aug 2020 20:46:38 +0000 (22:46 +0200)]
fix resource not found in expander demo

5 years agogtk-demo: Do markup parsing incrementally too
Matthias Clasen [Thu, 13 Aug 2020 18:19:13 +0000 (14:19 -0400)]
gtk-demo: Do markup parsing incrementally too

Pango has a markup parser api, might as well
use it to keep things responsive.

5 years agogtk-demo: Fix the Windows build
Matthias Clasen [Thu, 13 Aug 2020 19:49:45 +0000 (15:49 -0400)]
gtk-demo: Fix the Windows build

5 years agogtk-demo: Move the highlighting to a separate file
Matthias Clasen [Thu, 13 Aug 2020 17:08:57 +0000 (13:08 -0400)]
gtk-demo: Move the highlighting to a separate file

Move all the logic related to asynchronous highlighting
to fontify.c, to keep main.c from becoming too cluttered.

5 years agoAdwaita: rich-list rows
Jakub Steiner [Thu, 13 Aug 2020 18:11:19 +0000 (20:11 +0200)]
Adwaita: rich-list rows

- add whitespace to match the existing look

5 years agoAdwaita: fix focus for .navigation-sidebar
Jakub Steiner [Thu, 13 Aug 2020 17:40:00 +0000 (19:40 +0200)]
Adwaita: fix focus for .navigation-sidebar

5 years agoflatpak: builder options
Jakub Steiner [Mon, 10 Aug 2020 13:10:12 +0000 (15:10 +0200)]
flatpak: builder options

- avoid vulkan from crashing the inspector

5 years agogtk-demo: take off the makeup
Matthias Clasen [Tue, 11 Aug 2020 16:13:29 +0000 (12:13 -0400)]
gtk-demo: take off the makeup

Remove all the hardcoded spacing from the listbox
demo, so the rich-list styling can take effect.

5 years agoAdwaita: Fix hover in navigation sidebars
Matthias Clasen [Sun, 9 Aug 2020 14:29:39 +0000 (10:29 -0400)]
Adwaita: Fix hover in navigation sidebars

The placessidebar gets this from somewhere else, but
it wasn't working in the gtk-demo sidebar, so add it
explicitly. placessidebar specific styles should be
dropped from Adwaita as much as possible, but not
doing that here.

5 years agoAdwaita: style rich-list and data-table
Jakub Steiner [Thu, 6 Aug 2020 09:55:04 +0000 (11:55 +0200)]
Adwaita: style rich-list and data-table

- style special list types
- add navigation-sidebar too

https://gitlab.gnome.org/GNOME/gtk/-/issues/2929

5 years agowidget-factory: Use rich-list style
Matthias Clasen [Sun, 9 Aug 2020 15:03:32 +0000 (11:03 -0400)]
widget-factory: Use rich-list style

Use the .rich-list style for the listbox on page 2.

5 years agogtk-demo: Use style classes in the listbox demo
Matthias Clasen [Tue, 11 Aug 2020 00:19:09 +0000 (20:19 -0400)]
gtk-demo: Use style classes in the listbox demo

Add a .rich-list style class to the controls demo.

5 years agogtk-demo: Use style classes in the settings demo
Matthias Clasen [Sun, 9 Aug 2020 12:28:29 +0000 (08:28 -0400)]
gtk-demo: Use style classes in the settings demo

Use .navigation-sidebar on the left, and .data-table
on the right.

5 years agogtk-demo: Use a style class on the sidebar
Matthias Clasen [Sun, 9 Aug 2020 12:27:56 +0000 (08:27 -0400)]
gtk-demo: Use a style class on the sidebar

Use .navigation-sidebar for the main sidebar.

5 years agoinspector: Use the new list style classes
Matthias Clasen [Wed, 5 Aug 2020 20:43:12 +0000 (16:43 -0400)]
inspector: Use the new list style classes

Set .rich-list and .data-table on lists, as appropriate.

5 years agoplacessidebar: Use the .navigation-sidebar style class
Matthias Clasen [Wed, 5 Aug 2020 20:42:47 +0000 (16:42 -0400)]
placessidebar: Use the .navigation-sidebar style class

5 years agolists: Mention list style classes in docs
Matthias Clasen [Wed, 5 Aug 2020 20:41:53 +0000 (16:41 -0400)]
lists: Mention list style classes in docs

Document that GtkListView, GtkColumnView and GtkListBox
support .rich-list, .navigation-sidebar and .data-table
style classes.

5 years agogtk-demo: Insert markup incrementally
Matthias Clasen [Thu, 13 Aug 2020 16:59:52 +0000 (12:59 -0400)]
gtk-demo: Insert markup incrementally

The slowest step of highlighting our buffers is
inserting the markup into the buffer. Do that
incrementally, to avoid blocking the UI for
extended periods.

5 years agotextbuffer: Some more insert_with_attributes speedup
Matthias Clasen [Wed, 12 Aug 2020 17:41:53 +0000 (13:41 -0400)]
textbuffer: Some more insert_with_attributes speedup

There is no need for use to collect tags in an array;
we can just insert them into the text buffer right away.

5 years agogtk-demo: Fontify asynchronously
Matthias Clasen [Thu, 13 Aug 2020 04:45:52 +0000 (00:45 -0400)]
gtk-demo: Fontify asynchronously

Run highlight asynchronously. It isn't a problem for
most demos, but the cursor demo has an unusually large
ui file, which takes highlight a little bit of time
to produce.

5 years agoMerge branch 'openbsd-roaring' into 'master'
Emmanuele Bassi [Thu, 13 Aug 2020 16:23:20 +0000 (16:23 +0000)]
Merge branch 'openbsd-roaring' into 'master'

OpenBSD: don't include malloc.h

See merge request GNOME/gtk!2434

5 years agoOpenBSD: don't include malloc.h
Antoine Jacoutot [Thu, 13 Aug 2020 15:48:34 +0000 (17:48 +0200)]
OpenBSD: don't include malloc.h

This header doesn't exist anymore on recent OpenBSD releases.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 13 Aug 2020 12:08:54 +0000 (12:08 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2433

5 years agowidget-factory: Add more error states
Matthias Clasen [Wed, 12 Aug 2020 17:41:53 +0000 (13:41 -0400)]
widget-factory: Add more error states

Add a label with the .error style class in the
configuration dialog, also add another entry validation
here, to have it in one place.

5 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 13 Aug 2020 08:41:42 +0000 (10:41 +0200)]
Updated Spanish translation

5 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 13 Aug 2020 08:34:43 +0000 (10:34 +0200)]
Updated Spanish translation

5 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 13 Aug 2020 08:34:33 +0000 (10:34 +0200)]
Updated Spanish translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 13 Aug 2020 03:40:22 +0000 (03:40 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Speed up gtk_text_buffer_insert_markup

See merge request GNOME/gtk!2432

5 years agoSpeed up gtk_text_buffer_insert_markup
Matthias Clasen [Thu, 13 Aug 2020 02:51:59 +0000 (22:51 -0400)]
Speed up gtk_text_buffer_insert_markup

Instead of blindly creating new tags for every attribute,
reuse existing tags. For the syntax highlighting of the
ui file of the cursors demo, this gets us down from
20.000 tags to 6.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 13 Aug 2020 01:07:36 +0000 (01:07 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

gtk-demo: Group small images

See merge request GNOME/gtk!2431

5 years agogtk-demo: Group small images
Matthias Clasen [Thu, 13 Aug 2020 00:04:35 +0000 (20:04 -0400)]
gtk-demo: Group small images

Instead of showing 30 tabs, put all the cursor images
into one page.  Do the same for the small images in
the css animated background demo.

5 years agoUpdate Galician translation
Fran Dieguez [Wed, 12 Aug 2020 22:40:19 +0000 (22:40 +0000)]
Update Galician translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 12 Aug 2020 21:14:54 +0000 (21:14 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

widget-factory: Add an entry with error state

See merge request GNOME/gtk!2430

5 years agowidget-factory: Add an entry with error state
Matthias Clasen [Wed, 12 Aug 2020 17:26:46 +0000 (13:26 -0400)]
widget-factory: Add an entry with error state

Enter the wrong thing into the age entry for seeing
error states.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 12 Aug 2020 10:51:17 +0000 (10:51 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2429

5 years agogtk-demo: Celebrate losses too
Matthias Clasen [Wed, 12 Aug 2020 03:26:06 +0000 (23:26 -0400)]
gtk-demo: Celebrate losses too

Everybody is a winner!

5 years agogtk-demo: Visual improvement to solitaire
Matthias Clasen [Wed, 12 Aug 2020 03:03:31 +0000 (23:03 -0400)]
gtk-demo: Visual improvement to solitaire

Make the fields visible.

5 years agogtk-demo: Add a layout manager demo
Matthias Clasen [Wed, 12 Aug 2020 01:14:05 +0000 (21:14 -0400)]
gtk-demo: Add a layout manager demo

This is more or less a copy of the layout manager
example from clutter.

5 years agoAdd sizes to toplevelsize warnings
Matthias Clasen [Tue, 11 Aug 2020 01:31:49 +0000 (21:31 -0400)]
Add sizes to toplevelsize warnings

Might as well be informative while we're annoying.

5 years agogtk-demo: Drop the pixbufs demo
Matthias Clasen [Tue, 11 Aug 2020 20:26:04 +0000 (16:26 -0400)]
gtk-demo: Drop the pixbufs demo

It is from a different era, and doesn't show
the apis we want to promote. The visuals live
on, in the Css/Animated Backgrounds demo.

5 years agoMerge branch 'wip/smcv/roaring-license' into 'master'
Matthias Clasen [Tue, 11 Aug 2020 16:02:25 +0000 (16:02 +0000)]
Merge branch 'wip/smcv/roaring-license' into 'master'

Add attribution and licensing information for "roaring bitmaps" code

See merge request GNOME/gtk!2408

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Tue, 11 Aug 2020 15:58:16 +0000 (15:58 +0000)]
Update Ukrainian translation

5 years agoMerge branch 'afranke-master-patch-25531' into 'master'
Timm Bäder [Tue, 11 Aug 2020 14:26:23 +0000 (14:26 +0000)]
Merge branch 'afranke-master-patch-25531' into 'master'

Fix a string

See merge request GNOME/gtk!2428

5 years agoFix a string
Alexandre Franke [Tue, 11 Aug 2020 14:05:58 +0000 (14:05 +0000)]
Fix a string

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Mon, 10 Aug 2020 22:29:47 +0000 (22:29 +0000)]
Update Turkish translation

5 years agoMerge branch 'button-claim-clicks' into 'master'
Matthias Clasen [Mon, 10 Aug 2020 22:24:50 +0000 (22:24 +0000)]
Merge branch 'button-claim-clicks' into 'master'

button: Claim click events

Closes #3054

See merge request GNOME/gtk!2425

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 10 Aug 2020 21:45:09 +0000 (21:45 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3058

See merge request GNOME/gtk!2427

5 years agogtk-demo: Give the video player a default size
Matthias Clasen [Mon, 10 Aug 2020 02:34:17 +0000 (22:34 -0400)]
gtk-demo: Give the video player a default size

5 years agogtk-demo: Add a file filter for the video player
Matthias Clasen [Mon, 10 Aug 2020 02:27:32 +0000 (22:27 -0400)]
gtk-demo: Add a file filter for the video player

We are only interested in video files here.

5 years agowindow: Fix an oversight
Matthias Clasen [Mon, 10 Aug 2020 14:51:47 +0000 (10:51 -0400)]
window: Fix an oversight

Commit 658719a205bfcf moved the call to
gtk_window_compute_default_size() outside the
if (priv->needs_default_size)
but unfortunately, that function cleared that field,
so we never entered the branch.

Keep the setting of priv->needs_default_size in the
branch, where it belongs.

5 years agogtk-demo: Make the image demo more robust
Matthias Clasen [Mon, 10 Aug 2020 20:35:56 +0000 (16:35 -0400)]
gtk-demo: Make the image demo more robust

Make sure we don't crash if the demo is closed
early.

Fixes: #3058
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 10 Aug 2020 17:46:37 +0000 (17:46 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2426

5 years agogtk-demo: Give the video player a default size
Matthias Clasen [Mon, 10 Aug 2020 02:34:17 +0000 (22:34 -0400)]
gtk-demo: Give the video player a default size

5 years agogtk-demo: Add a file filter for the video player
Matthias Clasen [Mon, 10 Aug 2020 02:27:32 +0000 (22:27 -0400)]
gtk-demo: Add a file filter for the video player

We are only interested in video files here.

5 years agowindow: Fix an oversight
Matthias Clasen [Mon, 10 Aug 2020 14:51:47 +0000 (10:51 -0400)]
window: Fix an oversight

Commit 658719a205bfcf moved the call to
gtk_window_compute_default_size() outside the
if (priv->needs_default_size)
but unfortunately, that function cleared that field,
so we never entered the branch.

Keep the setting of priv->needs_default_size in the
branch, where it belongs.

5 years agobutton: Claim click events
Matthias Clasen [Mon, 10 Aug 2020 02:58:22 +0000 (22:58 -0400)]
button: Claim click events

This fixes issues with double activation on clicks.

Fixes: #3054
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 10 Aug 2020 01:10:41 +0000 (01:10 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

gtk-demo: Add a little extra in peg solitaire

Closes #3051

See merge request GNOME/gtk!2424

5 years agoprint-editor: Icon credits
Matthias Clasen [Mon, 10 Aug 2020 00:30:00 +0000 (20:30 -0400)]
print-editor: Icon credits

Give the artist credits.

5 years agonode-editor: Don't install the icon
Matthias Clasen [Mon, 10 Aug 2020 00:28:56 +0000 (20:28 -0400)]
node-editor: Don't install the icon

We don't want to install an icon if we're not
installing the app. Also give the artist credit.

Fixes: #3051
5 years agogtk-demo: Add a little extra in peg solitaire
Matthias Clasen [Sun, 9 Aug 2020 22:59:29 +0000 (18:59 -0400)]
gtk-demo: Add a little extra in peg solitaire

A win needs to be celebrated!

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 9 Aug 2020 22:46:50 +0000 (22:46 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3027

See merge request GNOME/gtk!2423

5 years agogtk-demo: Finish peg solitaire demo
Matthias Clasen [Sun, 9 Aug 2020 22:27:18 +0000 (18:27 -0400)]
gtk-demo: Finish peg solitaire demo

The restart button was simply not implemented.
While we are at it, make the pegs a bit bigger,
so clicking them is easier.

5 years agogtk-demo: Cosmetic fixes to the textmask demo
Matthias Clasen [Sun, 9 Aug 2020 22:05:27 +0000 (18:05 -0400)]
gtk-demo: Cosmetic fixes to the textmask demo

Make this come up with the right size.

5 years agogtk-demo: Cosmetic fixes for the fontrendering demo
Matthias Clasen [Sun, 9 Aug 2020 22:02:04 +0000 (18:02 -0400)]
gtk-demo: Cosmetic fixes for the fontrendering demo

Make this look a bit less thrown together.

5 years agogtk-demo: Dark theme support for dnd demo
Matthias Clasen [Sun, 9 Aug 2020 21:36:41 +0000 (17:36 -0400)]
gtk-demo: Dark theme support for dnd demo

Add minimal dark theme support to the dnd demo,
by picking suitable default colors for our items.

5 years agogtk-demo: Cosmetic improvements to the expander demo
Matthias Clasen [Sun, 9 Aug 2020 20:46:38 +0000 (16:46 -0400)]
gtk-demo: Cosmetic improvements to the expander demo

Set the textview up like our other readonly textviews.

Also sneak in a little easter egg.

5 years agogtk-demo: Add warnings to the themes demo
Matthias Clasen [Sun, 9 Aug 2020 20:36:00 +0000 (16:36 -0400)]
gtk-demo: Add warnings to the themes demo

Add a warning that the flickering here may be
hazardous to photosensitive viewers.

5 years agowayland: Don't send invalid anchor rectangles
Matthias Clasen [Sun, 9 Aug 2020 20:00:19 +0000 (16:00 -0400)]
wayland: Don't send invalid anchor rectangles

When we send an anchor rectangle with a width or
height of 0, mutter reponds with "Invalid anchor
rectangle size". So, don't do that.

This was seen as sudden disappearance of gtk4-demo
when you click the fishbowl benchmark all the way
through to the menubuttons.

Fixes: #3027
5 years agoAdwaita: Small improvement for dropdown
Matthias Clasen [Sun, 9 Aug 2020 19:43:46 +0000 (15:43 -0400)]
Adwaita: Small improvement for dropdown

Put some space between the arrow and the text.
This was noticable in the new listbox2 demo.

5 years agogtk-demo: Cosmetic improvement to listbox2 demo
Matthias Clasen [Sun, 9 Aug 2020 19:43:01 +0000 (15:43 -0400)]
gtk-demo: Cosmetic improvement to listbox2 demo

Make the checkbutton and the check align vertically.

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 9 Aug 2020 19:39:35 +0000 (19:39 +0000)]
Update Basque translation

5 years agoUpdate German translation
Christian Kirbach [Sun, 9 Aug 2020 19:05:18 +0000 (19:05 +0000)]
Update German translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 9 Aug 2020 17:11:18 +0000 (17:11 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2422

5 years agogtk-demo: Group the listbox demos
Matthias Clasen [Sun, 9 Aug 2020 16:31:35 +0000 (12:31 -0400)]
gtk-demo: Group the listbox demos

5 years agogtk-demo: Add another listbox demo
Matthias Clasen [Sun, 9 Aug 2020 16:29:52 +0000 (12:29 -0400)]
gtk-demo: Add another listbox demo

This is a more typical listbox use.

5 years agoAdwaita: be careful with list separators
Matthias Clasen [Sun, 9 Aug 2020 16:01:08 +0000 (12:01 -0400)]
Adwaita: be careful with list separators

We only want the list .separators class to affect its
immediate children - otherwise, we end up with separators
in dropdowns that are places into button strips. As a side
benefit, restricting this to immediate children makes for
faster matching.

5 years agogtk-demo: Fix an indentation mishap
Matthias Clasen [Sun, 9 Aug 2020 15:14:28 +0000 (11:14 -0400)]
gtk-demo: Fix an indentation mishap

5 years agogtk-demo: Drop the modelbutton demo
Matthias Clasen [Sun, 9 Aug 2020 14:59:22 +0000 (10:59 -0400)]
gtk-demo: Drop the modelbutton demo

Not a public api, so shouldn't be featured in a demo.

5 years agogtk-demo: Improve filtering
Matthias Clasen [Sun, 9 Aug 2020 14:53:48 +0000 (10:53 -0400)]
gtk-demo: Improve filtering

Show sidebar rows if any parent matches. This lets one
search for "lists" and get just the subtree with all the
listview demos.

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 9 Aug 2020 08:19:33 +0000 (08:19 +0000)]
Update Turkish translation

5 years agoMerge branch 'demo-polish' into 'master'
Matthias Clasen [Sun, 9 Aug 2020 04:28:31 +0000 (04:28 +0000)]
Merge branch 'demo-polish' into 'master'

Demo polish

See merge request GNOME/gtk!2420

5 years agogtk-demo: Make source formatting uniform
Matthias Clasen [Sun, 9 Aug 2020 04:03:43 +0000 (00:03 -0400)]
gtk-demo: Make source formatting uniform

Give the text view in the source tab the same
formatting as tabs we add for extra sources.

5 years agogtk-demo: Adapt hightlighting style for dark themes
Matthias Clasen [Sun, 9 Aug 2020 03:50:45 +0000 (23:50 -0400)]
gtk-demo: Adapt hightlighting style for dark themes

Switch to a highlight style that is readable with
dark background, if prefer-dark is set or we are
in HighContrastInverse.

5 years agogtk-demo: Cosmetics
Matthias Clasen [Sun, 9 Aug 2020 03:41:50 +0000 (23:41 -0400)]
gtk-demo: Cosmetics

5 years agogtk-demo: Make content views monospace
Matthias Clasen [Sun, 9 Aug 2020 03:41:05 +0000 (23:41 -0400)]
gtk-demo: Make content views monospace

That works better for code.

5 years agogtk-demo: Follow font settings again
Matthias Clasen [Sun, 9 Aug 2020 03:38:07 +0000 (23:38 -0400)]
gtk-demo: Follow font settings again

highlight puts font and size information into
its pango markup; strip that out to make our
text follow font settings again.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 23:08:44 +0000 (23:08 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3048

See merge request GNOME/gtk!2419

5 years agotextutil: Do a little better on retro X servers
Matthias Clasen [Sat, 8 Aug 2020 22:06:12 +0000 (18:06 -0400)]
textutil: Do a little better on retro X servers

When running on a non-composited, non-rgba X server
(such as Xnest), force the drag icons for text selections
to have a background, so we don't end up with black
text on black background.

Fixes: #3048
5 years agoinspector: Avoid a crash
Matthias Clasen [Sat, 8 Aug 2020 22:05:21 +0000 (18:05 -0400)]
inspector: Avoid a crash

I've seen the inspector crash when running on an
X server without an xsettings manager around. Better
be safe.

5 years agobookmarksmanager: Load bookmarks initially
Matthias Clasen [Sat, 8 Aug 2020 17:33:19 +0000 (13:33 -0400)]
bookmarksmanager: Load bookmarks initially

This was broken in 1e6171a4a700b0c16b2f.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 19:13:44 +0000 (19:13 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3037 and #3030

See merge request GNOME/gtk!2417

5 years agoRemove deprecation guards around gtk_window_present
Matthias Clasen [Sat, 8 Aug 2020 18:49:50 +0000 (14:49 -0400)]
Remove deprecation guards around gtk_window_present

It is not deprecated anymore.

5 years agogtk-demo: Fix iconscroll complex text
Matthias Clasen [Sat, 8 Aug 2020 18:38:18 +0000 (14:38 -0400)]
gtk-demo: Fix iconscroll complex text

We changed the way fontify works.
Adapt the iconscroll use.

5 years agogtk-demo: Fix iconscroll colors
Matthias Clasen [Sat, 8 Aug 2020 18:36:16 +0000 (14:36 -0400)]
gtk-demo: Fix iconscroll colors

We changed the way the color grid works.
Adapt the iconscroll use of it.

Fixes: #3030
5 years agoplacessidebar: Fix dnd cancellation
Matthias Clasen [Sat, 8 Aug 2020 18:25:46 +0000 (14:25 -0400)]
placessidebar: Fix dnd cancellation

When the drag is canceled by being dropped outside,
we get a ::cancel emission, that we want to handle
just like ::dnd-finished.

Fixes: #3037
5 years agoplacessidebar: Fix the bookmark drag icon
Matthias Clasen [Sat, 8 Aug 2020 18:24:45 +0000 (14:24 -0400)]
placessidebar: Fix the bookmark drag icon

Just use the widget; a paintable only works if the
widget it is based on actually gets drawn, the
clone we create here wasn't.

5 years agoplacessidebar: Fix bookmarks dnd
Matthias Clasen [Sat, 8 Aug 2020 17:47:23 +0000 (13:47 -0400)]
placessidebar: Fix bookmarks dnd

We were not handling drops of bookmarks correctly,
leading to criticals during DND.

Fixes: #3037